#ifndef LOGFULLDIALOG_H
#define LOGFULLDIALOG_H

#include <QDialog>
#include "log/log.h"
#include <QMap>

namespace Ui {
class LogFullDialog;
}

class LogFullDialog : public QDialog, public HIM::LogObserver
{
    Q_OBJECT

public:
    explicit LogFullDialog(QWidget *parent = nullptr);
    ~LogFullDialog();

    void update(int, const char *) override;
    void setLogLevelmsg(int , const QString &, const QString &);

private:
    Ui::LogFullDialog *ui;

    QMap<int,QString> logColorMap;

    QMap<int,QString> logLeverStrMap;

    const QString colorFrontA{"<font color=\""};
    const QString colorFrontB{"\">"};
    const QString colorFrontEnd{"</font>"};
};

#endif // LOGFULLDIALOG_H
